package org.jeecg.modules.geo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description: geo应用管理
 * @Author: jeecg-boot
 * @Date: 2022-11-29
 * @Version: V1.0
 */
@Data
@TableName("bim_geo_app")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "bim_geo_app对象", description = "geo应用管理")
public class BimGeoApp implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 应用编码
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "应用编码")
    private Integer id;
    /**
     * 应用序列号
     */
    @Excel(name = "应用序列号", width = 15)
    @ApiModelProperty(value = "应用序列号")
    @NotNull(message = "应用序列号不能为空")
    private String appCode;
    /**
     * 应用名称
     */
    @Excel(name = "应用名称", width = 15)
    @ApiModelProperty(value = "应用名称")
    @NotBlank(message = "应用名称不能为空")
    private String appName;
    /**
     * 简称
     */
    @Excel(name = "简称", width = 15)
    @ApiModelProperty(value = "简称")
    private String shortName;
    /**
     * 应用图标地址
     */
    @Excel(name = "应用图标地址", width = 15)
    @ApiModelProperty(value = "应用图标地址")
    private String appIconUrl;
    /**
     * 应用类型
     */
    @Excel(name = "应用类型", width = 15, dicCode = "GEO_APP_TYPE")
    @Dict(dicCode = "GEO_APP_TYPE")
    @ApiModelProperty(value = "应用类型")
    private Integer appType;
    /**
     * 接口地址
     */
    @Excel(name = "接口地址", width = 15)
    @ApiModelProperty(value = "接口地址")
    @NotBlank(message = "接口地址不能为空")
    private String apiUrl;
    /**
     * 上报数据接口
     */
    @Excel(name = "上报数据接口", width = 15)
    @ApiModelProperty(value = "上报数据接口")
    private String reportedUrl;
    /**
     * 应用描述
     */
    @Excel(name = "应用描述", width = 15)
    @ApiModelProperty(value = "应用描述")
    private String description;
    /**
     * 启用(1:是,0:否)
     */
    @Excel(name = "是否启用", width = 15, dicCode = "ENABLE_FLAG")
    @ApiModelProperty(value = "启用(1:是,0:否)")
    @Dict(dicCode = "ENABLE_FLAG")
    private Integer enableFlag;
    /**
     * 删除(1:是,0:否)
     */
    @Excel(name = "是否删除", width = 15, dicCode = "del_flag")
    @ApiModelProperty(value = "删除标志(0-正常,1-已删除)")
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;
    /**
     * 排序
     */
    @Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer sortOrder;

    /**
     * 授权配置信息
     */
    private String authConfig;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createUser;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateUser;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
